//耗材清单

import request from '@/utils/request'

// 获取耗材列表
export function getConsumablesList(data) {
  return request.get('/material' ,{ params: data })
}

// 新增耗材
export function addConsumables(data) {
  return request.post('/material/add' ,data)
}

// 修改耗材
export function editConsumables(data) {
  return request.put('/material/editor' ,data)
}

// 删除耗材
export function deleteConsumables(id) {
  return request.delete('/material/del/'+id)
}
// 获取耗材详情
export function getConsumables(id,wid) {
  return request.get('/material/get/'+id+"/"+wid)
}
//耗材快速入库
export function quickWarehouseInbound(data) {
  return request.put('/material/quickWarehouse' ,data)
}